import axios from 'axios'


const http = axios.create({
  baseURL: 'http://127.0.0.1:4523/m1/4899864-4556291-default',
  timeout: 30000,
  headers: {
    'Content-type': 'application/json'
  }
})

//请求拦截器
http.interceptors.request.use((config) => {
    return config
  }, error => {
    return Promise.reject(error)
  }
)

//响应拦截器
http.interceptors.response.use((response) => {
    return response
  }, error => {
    return Promise.reject(error)
  }
)

export default http


